from selenium import webdriver
from selenium.webdriver.chrome.options import Options

from selenium.webdriver.common.by import By

# opt = Options()
# opt.add_experimental_option('excludeSwitches', ['enable-automation'])
# driver = webdriver.Chrome(options=opt)

option = webdriver.ChromeOptions()
option.add_argument('headless')
driver = webdriver.Chrome(chrome_options=option)

driver=webdriver.Chrome()

# driver.find_element(By.ID,'s-top-loginbtn').click()
# driver.implicitly_wait(2)
# driver.find_element(By.ID,'TANGRAM__PSP_11__changeSmsCodeItem').click()
# driver.find_element(By.ID,'TANGRAM__PSP_11__smsPhone').send_keys('19150979228')
# driver.find_element(By.ID,'TANGRAM__PSP_11__smsTimer').click()

driver.get("https://film.sohu.com/vip.html?channeled=1211300002")
driver.find_element(By.ID,'nav_btn_login').click()
driver.find_element(By.XPATH,'//*[@id="box_login"]/div/div[1]/div/div[1]/div[2]/div[1]/div[2]/input').send_keys('19150979228')
driver.find_element(By.XPATH,'//*[@id="box_login"]/div/div[1]/div/div[1]/div[2]/div[2]/div/span').click()
# driver.quit()